package com.example.pacs.dao;

import com.example.pacs.bean.entity.Series;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SeriesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Series record);

    int insertSelective(Series record);

    Series selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Series record);

    int updateByPrimaryKey(Series record);

    /**
     * 各根据seriesInstanceUID和seriesNumber查询series是否存在
     *
     * @param seriesInstanceUID series实例ID
     * @param seriesNumber 系列号
     * @return series
     */
    Series querySeriesBySeriesInstanceIdAndSeriesNumber(@Param("seriesInstanceUID") String seriesInstanceUID, @Param("seriesNumber") Integer seriesNumber);
}